<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <base href="<%=basePath%>">
	<meta charset="UTF-8">
	<title>用户列表</title>
	<link href="js/inner.css" rel="Stylesheet" type="text/css"/>
</head>
<body>
	<h1 align="center">用户列表</h1><br><br>
    <table width="70%" align="center" >
    	<tr>
    		<td>编号</td>
    		<td>姓名</td>
    		<td>性别</td>
    		<td>地址</td>
    		<td>生日</td>
    		
    	</tr>
    	<c:forEach items="${users}" var="bean">
    	<tr>
    		<td>${bean.id} </td>
    		<td><a href="adminHandle/userBuyList?id=${bean.id}">${bean.userName}</a></td>
    		<td>${bean.sex}</td>
    		<td>${bean.address}</td>
    		<td>${bean.birthday}</td>
    		
    	</tr>
    	</c:forEach>
    	
    	<tr>
    		<td colspan="7" align="center"> ${errMsg } </td>
    	</tr>
    </table>
</body>
</html>